<div class="main-content">
    {% for type in articleType.children %}
    <div class="main-content-each active">
        <h2 class="main-title">{{type.name}}</h2>
        {% for art in type.articles %}
        <div class="content downlist clearfix">
            <div class="item-info">
                <h4 class="item-info-title">{{ art.title }}</h4>
                <p class="content-intro">{{ art.content | safe }}</p>
            </div>
            {% if art.file %}
            <div class="file-wrap clearfix">
                <h4 class="item-name">{{art.file.name}}</h4>
                <a class="btn down-btn" href="{% if art.file %}/pdf/download?resourceId={{art.file.id}}{%else%}javascript:layer.msg('文件不存在或被删除~'){% endif %}" title="下载 | {{art.file.name}}">下载</a>
                <a class="btn btn-onlineview" href="javascript:;" title="{{art.file.name}}" fileId="{{art.file.id}}" articleId="{{art.id}}">在线浏览</a>
            </div>
            {% endif %}
        </div>
        {% else %}
        <div class="content ">
            <p>暂无内容</p>
        </div>
        {%  endfor %}
    </div>
    {% endfor %}
</div>
